package cn.itcast.domain;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class StuAndCourse {
    private String sno;

    private String sname;

    private String sex;

    private Integer courseno;

    private String coursename;

    private Integer score;

    public StuAndCourse() {

    }

    public StuAndCourse(String sno, String sname, String sex, Integer courseno, String coursename, Integer score) {
        this.sno = sno;
        this.sname = sname;
        this.sex = sex;
        this.courseno = courseno;
        this.coursename = coursename;
        this.score = score;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getCourseno() {
        return courseno;
    }

    public void setCourseno(Integer courseno) {
        this.courseno = courseno;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "StuAndCourse{" +
                "sno='" + sno + '\'' +
                ", sname='" + sname + '\'' +
                ", sex='" + sex + '\'' +
                ", courseno=" + courseno +
                ", coursename='" + coursename + '\'' +
                ", score=" + score +
                '}';
    }
}
